﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ViewAndEditAllCuts.aspx.cs" Inherits="ViewAndEditAllCuts" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:DataList runat="server" ID="uxAllCutsDataList" BorderStyle="None"
             BorderWidth="1px"
             RepeatColumns="1" RepeatLayout="Flow" 
            oncancelcommand="uxAllCutsDataList_CancelCommand" 
            oneditcommand="uxAllCutsDataList_EditCommand" 
            onupdatecommand="uxAllCutsDataList_UpdateCommand">
             <ItemTemplate>
                <%# DataBinder.Eval(Container.DataItem, "Title") %>
                (<asp:LinkButton ID="uxEditLinkButton" runat="server" CommandName="edit" Text="edit" />)
                <asp:Label runat="server" ID="uxSuccessMessageLabel" BorderColor="#33cc33" ForeColor="#006699" />
             </ItemTemplate>
             <EditItemTemplate>
                 <table>
                     <tr>
                         <td>
                             Title
                         </td>
                         <td>
                             <asp:HiddenField
                                 ID="uxAlbumIdTextBox"
                                 runat="server"
                                 Value='<%# DataBinder.Eval(Container.DataItem, "AlbumId") %>' />
                             <asp:HiddenField
                                 ID="uxCutNumberTextBox"
                                 runat="server"
                                 Value='<%# DataBinder.Eval(Container.DataItem, "CutNumber") %>' />                             <asp:TextBox
                                 ID="uxTitleTextBox"
                                 runat="server"
                                 Text='<%# DataBinder.Eval(Container.DataItem, "Title") %>' />
                         </td>
                         <td>
                             Length (seconds)
                         </td>
                         <td>
                             <asp:TextBox
                                 ID="uxLengthInSecondsTextBox"
                                 runat="server"
                                 Text='<%# DataBinder.Eval(Container.DataItem, "LengthInSeconds") %>' />
                         </td>
                     </tr>
                     <tr>
                         <td colspan="2">
                             <asp:LinkButton ID="uxUpdateLinkButton" CommandName="update" runat="server" Text="Update" />
                         </td>
                         <td colspan="2">
                             <asp:LinkButton ID="uxCancelLinkButton" CommandName="cancel" runat="server" Text="Cancel" />
                         </td>
                     </tr>
                 </table>
             </EditItemTemplate>
        </asp:DataList>
    </div>
    </form>
</body>
</html>
